package net.wanho.constant;

import java.util.concurrent.TimeUnit;

/**
 * Author: Lun
 * Date: 2025-07-08 10:13
 * Description: 用户状态枚举类
 */
public class UserConstant {
    /**
     * 用户状态
     * 0: 启用
     * 1: 禁用
     */
    public static final Integer USER_DISABLED = 1;
    public static final Integer USER_ENABLED = 0;

    /**
     * 用户token信息
     */
    public static final String USER_ID = "userId";
    public static final String USER_CODE = "userCode";

    /**
     * 菜单保存前缀
     */
    public static final String MENU_PREFIX = "menu:";

    /**
     * 菜单保存时间与单位
     */
    public static final Integer MENU_EXPIRE_DATE = 5;
    public static final TimeUnit MENU_EXPIRE_UNIT = TimeUnit.HOURS;
}
